package com.xxxy.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author sjh
 * @date 2022/3/5 16:38
 */
@Data
public class GradeAnalysisResponse implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "章节")
    private Integer chapter;

    @ApiModelProperty(value = "章节点(0为该章节内容)")
    private Integer chapterPoint;

    @ApiModelProperty(value = "章节点内容")
    private String outline;

    @JsonInclude(JsonInclude.Include.NON_EMPTY) //属性为 空（""）[] 或者为 NULL 都不序列化
    @ApiModelProperty(value = "章节点所对应的题目")
    private String questions;

    @JsonInclude(JsonInclude.Include.NON_EMPTY) //属性为 空（""）[] 或者为 NULL 都不序列化
    @ApiModelProperty(value = "掌握程度")
    private Double level;

    @ApiModelProperty(value = "章节下的章节点")
    @JsonInclude(JsonInclude.Include.NON_EMPTY) //属性为 空（""）[] 或者为 NULL 都不序列化
    private List<GradeAnalysisResponse> child = new ArrayList<>();

}
